package com.jrx.anytxn.transaction.dto.payment;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class StagingLoanRes implements Serializable {

    /**
     * 订单号
     */
    private String loanId;

    /**
     * 订单金额
     */
    private BigDecimal loanAmount;

    /**
     * 分期金额 = stagingPrincipal+stagingInterest+stagingFee
     */
    private BigDecimal stagingAmount;

    /**
     * 分期本金
     */
    private BigDecimal stagingPrincipal;

    /**
     * 分期利息
     */
    private BigDecimal stagingInterest;

    /**
     * 分期费用
     */
    private BigDecimal stagingFee;

    /**
     * 交易日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date postingDate;

    /**
     * 贷款订单备注
     */
    private String memo;

    /**
     * 商户ID merchant_id
     * @return
     */
    private String merchantId;

    /**
     * 商户名称
     * @return
     */
    private String merchantName;


    public String getLoanId() {
        return loanId;
    }

    public void setLoanId(String loanId) {
        this.loanId = loanId;
    }

    public BigDecimal getLoanAmount() {
        return loanAmount;
    }

    public void setLoanAmount(BigDecimal loanAmount) {
        this.loanAmount = loanAmount;
    }

    public BigDecimal getStagingAmount() {
        return stagingAmount;
    }

    public void setStagingAmount(BigDecimal stagingAmount) {
        this.stagingAmount = stagingAmount;
    }

    public BigDecimal getStagingPrincipal() {
        return stagingPrincipal;
    }

    public void setStagingPrincipal(BigDecimal stagingPrincipal) {
        this.stagingPrincipal = stagingPrincipal;
    }

    public BigDecimal getStagingInterest() {
        return stagingInterest;
    }

    public void setStagingInterest(BigDecimal stagingInterest) {
        this.stagingInterest = stagingInterest;
    }

    public BigDecimal getStagingFee() {
        return stagingFee;
    }

    public void setStagingFee(BigDecimal stagingFee) {
        this.stagingFee = stagingFee;
    }

    public Date getPostingDate() {
        return postingDate;
    }

    public void setPostingDate(Date postingDate) {
        this.postingDate = postingDate;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }

    public String getMerchantName() {
        return merchantName;
    }

    public void setMerchantName(String merchantName) {
        this.merchantName = merchantName;
    }
}